StoreEngine\Classes\Cart D

Total Complexity 215
Dependencies 17
Dependents 6
Total lines 1,844
Lines of code 822
Logical lines of code 448
Comment lines 742
Methods 101
Properties 13

Methods 101

Method Rating Maintainability Complexity Lines of code
add_product_to_cart()
A
37 10 77
merge_carts()
A
41 10 54
get_product_subtotal()
A
47 8 39
validate_cart_items()
A
46 8 37
generate_cart_item_id()
A
51 8 25
get_tax_totals()
S
49 7 30
load_cart()
S
47 6 36
get_cart_subtotal()
S
56 7 16
handle_remove_cart_item_request()
S
54 6 20
store_on_database()
S
54 5 21
get_taxes_total()
S
59 5 14
update_quantity()
S
58 5 14
handle_remove_coupon_request()
S
60 4 13
__construct()
S
53 3 22
is_product_in_cart()
S
66 4 8
get_cart_item_by_product()
S
67 3 8
is_price_in_cart()
S
67 3 8
find_product_in_cart()
S
68 3 8
set_meta()
S
68 3 7
is_cart_consist_subscription_product()
S
64 3 10
has_onetime_products()
S
64 3 10
validate_coupon()
S
66 3 8
get_tax_price_display_mode()
S
70 3 6
apply_coupon()
S
63 2 11
remove_cart_item()
S
62 2 11
remove_meta()
S
70 2 6
set_new_cookie()
S
74 2 5
get_totals()
S
79 2 3
set_meta_multiple()
S
73 2 5
get_total()
S
67 2 7
get_displayed_subtotal()
S
78 2 3
get_cart_tax()
S
71 2 5
init()
S
69 2 7
get_remove_item_url()
S
70 2 5
get_coupon_discount_amount()
S
67 2 7
get_total_discount()
S
68 2 7
calculate_cart_totals()
S
66 2 9
remove_coupon()
S
63 2 10
get_count()
S
69 2 7
get_product_price()
S
65 2 9
get_cart_contents_total()
S
75 1 4
get_shipping_tax()
S
75 1 4
get_shipping_total()
S
75 1 4
get_discount_tax()
S
75 1 4
needs_payment()
S
74 1 4
get_discount_total()
S
75 1 4
has_items()
S
79 1 3
get_subtotal_tax()
S
75 1 4
get_subtotal()
S
75 1 4
get_totals_var()
S
79 1 3
item_exists()
S
79 1 3
get_coupon_discount_tax_totals()
S
82 1 3
get_coupon_discount_totals()
S
82 1 3
get_cart_contents_tax()
S
75 1 4
get_fee_tax()
S
75 1 4
get_total_tax()
S
75 1 4
get_fee_total()
S
75 1 4
set_cart_contents_taxes()
S
80 1 3
get_shipping_taxes()
S
75 1 4
get_cart_contents_taxes()
S
75 1 4
get_fee_taxes()
S
75 1 4
get_taxes()
S
74 1 4
get_cart_items()
S
82 1 3
remove_coupons()
S
72 1 6
clear_cart()
S
65 1 10
get_tax_amount()
S
74 1 4
get_shipping_tax_amount()
S
75 1 4
validate_items()
S
78 1 4
show_shipping()
S
79 1 3
set_fee_taxes()
S
80 1 3
set_total_tax()
S
79 1 3
set_shipping_taxes()
S
80 1 3
get_cart_item()
S
80 1 3
is_coupon_applied()
S
79 1 3
get_coupons()
S
82 1 3
get_fees()
S
82 1 3
get_coupon_discount_tax_amount()
S
78 1 3
get_meta()
S
79 1 3
has_subscription_product()
S
79 1 3
is_cart_empty()
S
79 1 3
get_cart_hash()
S
82 1 3
display_prices_including_tax()
S
75 1 4
get_customer()
S
81 1 3
reset_totals()
S
76 1 4
get_items_count()
S
80 1 3
set_coupon_discount_totals()
S
81 1 3
set_fee_tax()
S
80 1 3
set_coupon_discount_tax_totals()
S
81 1 3
set_applied_coupons()
S
81 1 3
set_totals()
S
79 1 3
set_subtotal()
S
79 1 3
set_subtotal_tax()
S
80 1 3
set_discount_total()
S
80 1 3
set_discount_tax()
S
80 1 3
set_shipping_total()
S
79 1 3
set_shipping_tax()
S
80 1 3
set_cart_contents_total()
S
79 1 3
set_cart_contents_tax()
S
80 1 3
set_total()
S
78 1 3
set_fee_total()
S
79 1 3
calculate_shipping()
S
82 1 3